#include <gflags/gflags.h>
#include <iostream>

DEFINE_bool(verbose, false, "Enable verbose output");
DEFINE_int32(port, 8080, "Port number");
DEFINE_string(config_file, "config.txt", "Path to the config file");

int main(int argc, char* argv[]) {
    // 解析命令行参数
    gflags::ParseCommandLineFlags(&argc, &argv, true);
    
    // 使用标志值
    if (FLAGS_verbose) {
        std::cout << "Verbose output enabled" << std::endl;
    }
    std::cout << "Port: " << FLAGS_port << std::endl;
    std::cout << "Config file: " << FLAGS_config_file << std::endl;

    return 0;
}
